import request from '@/utils/request'
// 登录接口
export const reqLogin = data => request({
  method: 'post',
  url: '/sys/login',
  data
})

// 获取用户基本信息
export const reqGetUserInfo = () => request({
  method: 'post',
  url: '/sys/profile'
})

// 获取带头像的用户信息
export const reqGetUserDetailById = id => request({
  method: 'get',
  url: `/sys/user/${id}`
})
